package com.gang.mars.basic.thread;

/**
 * 线程第一课：创建线程,继承Thread
 * */
public class Grape001 {

    static class Grape002 extends Thread{

        public Grape002(String threadName){
            super(threadName);
        }

        @Override
        public void run() {
            System.out.println(Thread.currentThread().getName());
        }
    }

    public static void main(String[] args) {

        Grape002 t1 = new Grape002("thread-grape002");

        t1.start();
    }
}
